package com.example.internetplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.internetplus.domain.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<Long> queryDoctorById(@Param("patientId") Long patientId);


    List<Long> queryPatient(Long doctorId);
    @Select("select user_name from user where id = #{id};")
    String queryUserNameById(Long id);
}
